<?php
$info = $this->ret['userinfo'];
?>
<form method="post" action="<?= $this->_makeURL('member', 'index', 'save_prop')?>" id='propForm'>
<div class="h_left">
      <ul class="h_menu_b">
        <li style="font-size:14px; font-weight:bold; color:#000;"><a class="c1" href="<?=self::_makeURL($this->app,$this->controller,'account',array('uid'=>$this->uid))?>" >基本资料</a></li>
        <li style="font-size:14px; font-weight:bold; color:#000;"><a class="cl" href="<?=self::_makeURL($this->app,$this->controller,'save_photo',array('uid'=>$this->uid))?>">上传头像</a></li>
      </ul>
  <dl class="Information">
  <dt>昵称：</dt>
  <dd><input name="username" value="<?=$info['username']?>" readonly type="text" /></dd>
  </dl>
    <dl class="Information">
  <dt>性别：</dt>
  <dd>
      <input name="gender_flag" type="radio" value="0" <?= $info['sex']==0?"checked":""?>  /><span>保密</span>
      <input name="gender_flag" type="radio"  value="1" <?= $info['sex']==1?"checked":""?>  /><span>男</span>
      <input name="gender_flag" type="radio" value="2" <?= $info['sex']==2?"checked":""?>  /><span>女</span>
  </dd>
  </dl>
    <dl class="Information">
  <dt>生日：</dt>
  <dd><input name="cal_type" type="radio" value="1" <?=$info['cale_type']==1?"checked":""?>  />公历<input name="cal_type" type="radio" <?=$info['cale_type']==2?"checked":""?> value="2" />农历</dd>
  <dd id="Birth">
  	<script type="text/javascript">
		var bc = new BirthdayChooser("<?= $info['birthday'] ?>");
		bc.write();
	</script>年份不会被公开
  </dd>
  </dl>
  <dl class="Information">
  <dt>星座：</dt>
  <dd>
  <input type="text" value="" id='astro' name='astro' readonly/> 
  </dd>
  <dd>
  <script type="text/javascript">
	if(bc.d.length==3){
		bc.fillData(bc.d[0], bc.d[1], bc.d[2]);
	}else{
		bc.fillData(0, 0, 0);
	}
	</script>
  </dd>
  </dl>
    <dl class="Information">
  <dt>现居地：</dt>
  <dd>
  	<script type="text/javascript">
		new Resident('r_', '<?= $info['r_province']?>', '<?= $info['r_city']?>', '<?= $info['r_district']?>').write();
	</script>
  </dd>
  </dl>
    <dl class="Information">
  <dt>婚姻状况：</dt>
  <dd>
  	<?= makeSelect(array_merge(array('0'=>'---婚姻---'), $_SERVER['const']['marriage']), $info['marriage'], array('name'=>'marriage'))?>
  </dd>
  </dl>
    <dl class="Information">
  <dt>血型状况：</dt>
  <?= makeSelect($_SERVER['const']['bloodtype'], $info['bloodtype'], array('name'=>'bloodtype'))?>
  <dd></dd>
  </dl>
    <dl class="Information">
  	<dt>家乡：</dt>
 	 <dd>
 	 	<script type="text/javascript">
			new Resident('h_', '<?= $info['h_province']?>', '<?= $info['h_city']?>', '<?= $info['h_district']?>').write();
		</script>
	</dd>
  </dl>
  <dl class="Information">
  <dt>自我介绍：</dt>
  <dd style="height: 50px;padding-left:8px">
  <textarea cols="60" name="my_desc" ><?=$info['my_desc']?></textarea>
  </dd>
  </dl>
    <dl class="Information">
  <dt>职业：</dt>
  <dd><input name="" type="text" name="professional" value="<?=$info['profession']?>" /></dd>
  </dl>
    <dl class="Information">
  <dt>公司名称：</dt>
  <dd><input name="company" value="<?=$info['company']?>" type="text" /></dd>
  </dl>
    
      <dl class="Information">
  <dt>详细地址：</dt>
  <dd id="address"><input name="address" value="<?=$info['address']?>" type="text" /></dd>
  </dl>
  <dl class="Information">
  <dt id="bc"><button class="cbtn" type="submit">保存设置</button></dt>
  </dl>
</div>
</form>
<script type='text/javascript'>
$('propForm').observe('submit', StandardProp.submit);
</script>